<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保证金退还 主页面</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>

<script type="text/javascript">

	var ACTION_URL="${ctx}/renovation_depositAccountingAction.do?";
	var cur_p =1;

	function showCycleForward(){ //流程跳转
 		var url = "${ctx}/renovation_renovationForwordAction.do?method=renovationForwordSmall";
		top.windowOpen(url, "renovationForward", "装修流程", 320, 900);
	}
	function cycleForward(url){
   		window.location.href=url;
	}
/*****************************************************************************************/
	function reflesh(){ //刷新
		window.frames("depositAccountingListIfm").location.href = ACTION_URL+"method=queryDepositAccounting&ec_p="+cur_p;
	}

	function submitSearch(){ //查询
		this.cur_p =1;
		var params = $("searchForm").serialize();
		var url = ACTION_URL+"method=setDepositAccountingSearchCondition";
		sendAjaxRequest(url,params,function(){
			reflesh();
		});
	}

	function openSearchPage(){  //打开高级查询
		var url = ACTION_URL+"method=navigateDepositAccountingSearch";
   		top.windowOpen(url, "depositAccountingSearch", "高级查询", 350, 550,true,"depositAccountingSearchIfm");
	}

	function openDepositAccountingPage(licenceId){ //打开退还核算页面

		var url = ACTION_URL+"method=navigateCountDepositMain&licenceId="+licenceId;
   		top.windowOpen(url, "countDepositMain", "保证金补退核算", 380, 800,true,"countDepositMainIfm");
	}

	function openRenovateApprovalMain(licenceId){ //打开审批页面

		var url = ACTION_URL+"method=navigateRenovateApprovalMain&licenceId="+licenceId;
   		top.windowOpen(url, "renovateApprovalMain", "保证金补退审批", 380, 800,true,"renovateApprovalMainIfm");
	}

	function openDetailMainPage(licenceId){
		var url = ACTION_URL+"method=navigateDetailMain&licenceId="+licenceId;
   		top.windowOpen(url, "detailMain", "保证金补退审批", 380, 800,true,"detailMainIfm");
	}

	function openViolationList(licenceId){
		var url = ACTION_URL+"method=navigateViolationList&licenceId="+licenceId;
   		top.windowOpen(url, "violationList", "复验结果详细", 320, 700,true,"violationListIfm");
	}

	function openSubmitPage(inspectionReqnId){ //打开提交页面
		var url = ACTION_URL+"method=navigateSubmitPage&inspectionRequistionId="+inspectionReqnId;
   		top.windowOpen(url, "submitPage", "提交", 200,500,true,"submitPageIfm");
	}

</script>


</head>


<body>

<div >
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td id="pageNav_leftimg"><img src="${ctx}/images/ico_zxgl_bzjbt.gif" width="46" height="47" /></td>
      <td id="navWord"><span class="page_title">保证金退还</span></td>
      <td class="pageNav_right"><a href="#" style="CURSOR: hand;" onFocus="this.blur()" onClick="showCycleForward();"><img src="${ctx}/images/charage_buzhou11.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:showFull_in();"><img id="full_image"  src="${ctx}/images/ico_fullscreen.gif" border="0"/></a></td>
    </tr>
  </table>
</div>

<div class="container">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>

<form id="searchForm" name="searchForm" method="post" action="" target="depositAccountingListIfm">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" id="search01"  class="bg_search">
            <tr>
              <td >
              <table border="0" cellpadding="0" cellspacing="1">
                <tr>
                  <td class="grid align_left">楼 栋：</td>
                  <td class="td_search align_left">
                   <pms:unitedSelect
		               		id="buildingId"
		               		name="buildingId"
		               		optionLabel="name"
		               		optionValue="keyword"
		               		selectText="请选择..."
		               		dataList="${buildingList}"
		               		style="width:90px;">
	         		</pms:unitedSelect></td>
				  <td class="grid align_left">房 号：</td>
                  <td class="td_search align_left"><input name="houseNumber" type="text" class="inputtext" size="16"   onkeydown="javascript:if (event.keyCode==13) submitSearch();" /></td>
				  <td class="grid align_left">退还期限：</td>
                  <td class="td_search align_left">
		             <pms:unitedSelect
	               		id="returnTerm"
	               		name="returnTerm"
	               		optionLabel="name"
	               		optionValue="value"
	               		selectText="请选择..."
	               		dataList="${returnTermList}"
	               		style="width:90px;">
	         	  	</pms:unitedSelect></td>
				  <td class="grid align_left">审批状态：</td>
                  <td class="td_search align_left">
                  <pms:unitedSelect
	               		id="approvalState"
	               		name="approvalState"
	               		optionLabel="name"
	               		optionValue="value"
	               		selectText="请选择..."
	               		dataList="${approvalStateList}"
	               		style="width:90px;">
	         	  </pms:unitedSelect></td>
                  <td class="td_search">
                  <table border="0" cellpadding="0" cellspacing="0" >
                      <tr>
                        <td class="buttonOffLeft" id="btn1_111"></td>
                        <td class="buttonOffMiddle" id="btn1_112" onclick="submitSearch();" onblur="btn_change(11)" onMouseOver="btn_change_over(11)" onMouseOut="btn_change_out(11)">
                        	<img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle" /> 查  询</td>
                        <td class="buttonOffRight" id="btn1_113"></td>
                      </tr>
                  </table>
                  </td>
				  <td>
				  <table border="0" cellpadding="0" cellspacing="0">
            		<tr>
		              <td class="buttonOffLeft" id="btn1_21"></td>
		              <td class="buttonOffMiddle" id="btn1_22" onblur="btn_change(2)" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)">
		              		<a href="#" onFocus="this.blur()" onClick="openSearchPage();" style="color:#000;">高级查询</a></td>
              		  <td class="buttonOffRight" id="btn1_23"></td>
            		</tr>
          		  </table>
          		  </td>
                  <td><table border="0" cellpadding="0" cellspacing="0"></table></td>
                </tr>
              </table>
              </td>
            </tr>
          </table>
</form>
      </td>
    </tr>
    <tr>
	    <td valign="top">
			<iframe id="depositAccountingListIfm" name="depositAccountingListIfm" src="${ctx}/renovation_depositAccountingAction.do?method=navigateDepositAccountingEmptyList"  frameborder="0"  scrolling="auto"  width="100%"></iframe>
		</td>
    </tr>
  </table>

</div>

</body>
</html>
